// pages/aftersalebox/aftersalesubsuccess/aftersalesubsuccess.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    id: ""
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    if (options.id) {
      this.setData({
        id: options.id
      })
    }
  },
  //回首页
  goHome: function () {
    wx.reLaunch({
      url: '../../about/about',
    })
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function(res) {
    debugger;
    if (res.from === 'button') {
      // 来自页面内转发按钮
      console.log(res.target)
    }
    return {
      title: '填写售后信息',
      path: "pages/aftersalebox/aftersalefrom/aftersalefrom?id=" + this.data.id,
      imageUrl: "../../../assets/images/afshare.png",
    }
  },
})